package com.trickytriad.events.game
{
	import com.trickytriad.model.GameData;
	
	import flash.events.Event;

	/**
	 * Event that is used when attempting to retrieve GameData.
	 * 
	 * Handled from GetGameDataTask.
	 */
	public class GetGameDataEvent extends Event
	{
		// Event types
		public static const GETGAMEDATA_REQUEST:String = "getGameDataRequest";
		public static const GETGAMEDATA_DONE:String = "getGameDataDone";
		
		// Game ID of the game to retrieve
		public var gameid:uint;
		// GameData of the game that was retrieved
		public var gdata:GameData;

		/**
		 * Constructor.
		 * @param String Event type of this event.
		 * @param uint GameID, expected if this is of type "getGameDataRequest".
		 * @param GameData GameData object, expected if this is of type "getGameDataDone".
		 */
		public function GetGameDataEvent(type:String, in_gameid:uint, in_gdata:GameData)
		{
			super(type, false, false);
			this.gameid = in_gameid;
			this.gdata = in_gdata;
		}
		
	}
}